/*
 * Created: 2022-09-12 18:50:45
 * Author : 涛涛涛
 */

import React, { FC, useMemo } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { MyCss, useClassName } from '@/utils/index';

export interface IProps extends ICompProps {}
RecordCard.defaultProps = {} as Partial<IProps>;
function RecordCard(props: IProps) {
    const { className, style, children } = props;
    const localClassName = useClassName('RecordCard', className);
    const localStyle = useMemo(() => {
        return {
            ...style,
            // boxShadow: MyCss.cardBoxShadow,
        };
    }, [style]);
    return (
        <RootView className={localClassName} style={localStyle}>
            {children}
        </RootView>
    );
}
export default React.memo(RecordCard as FC<IProps>);
const RootView = styled(View)`
    &.RecordCard {
        margin-top: 40px;
        padding: 20px 30px;
    }
`;
